Repository navigation
Validate model publishing before remote writes and preserve failures - #947
Gajesh2007 wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Consolidated into #1096, the combined tooling, benchmark and E2E refactor PR. Your latest head |
A failed Secret Manager lookup could still reach an R2 upload because
export VAR="$(gcloud ...)"hid the command failure. Fetch credentials with standalone assignments, reject empty results, then export them before any upload.Rollback preparation now validates registry IDs, a distinct destination, quantization and positive int64 fields before copying objects. It prepares registration/promotion JSON up front and removes its owned staging directory on exit. A portable
printfalso fixes macOS Bash interpreting the ellipsis after$SRC_VERSIONas part of the variable name, which previously aborted after registration and before promotion.flowchart LR subgraph Before A[Publish or prepare rollback] --> B[export hides failed credential lookup] B --> C[R2 upload or recursive copy] C --> D[Rollback numeric conversion] D --> E[Invalid input fails after remote changes] D --> F[Register then expand version beside ellipsis] F --> G[macOS Bash aborts before promotion] end subgraph After A2[Publish or prepare rollback] --> B2[Rollback validates and encodes API payloads] B2 --> C2[Standalone credential lookups and nonempty check] C2 --> D2[Failure exits before remote writes] C2 --> E2[Copy or upload then register and promote] E2 --> F2[EXIT trap cleans owned staging] endValidation: six offline Python fixtures pass, exercising both scripts with local
gcloud,aws,curlandswiftstubs. Baseline runs reproduce 36 failing subcases, including the normal rollback promotion failure on system Bash. Existing publish capability and pinned Hugging Face workflow payload tests also pass, as do shell parsing, CI YAML parsing and docs lint for 278 pages. Independent production-source review found no introduced blockers.The fixture runs no real cloud, coordinator, Swift or model operation. This is preflight/failure-handling work; completed remote copies or registrations are not rolled back automatically if a later operation fails. The operations runbook describes how to inspect that state before retrying.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.